package com.lb.string;

/**
 * @author zhangjun
 * @since 2025/01/13
 */
public class RoundingTest {
    public static int checkAndAdjust(int callout, int mpq) {
        // 检查是否整除
        if (callout % mpq == 0) {
            return 0; // a 是 b 的整数倍
        } else {
            // 计算向上取整的最小值
            return ((callout / mpq) + 1) * mpq;
        }
    }

    public static void main(String[] args) {
        System.out.println(checkAndAdjust(30,40));
    }
}
